From 3b4caf321a14160cf7a47efe019dde809c462fa9 Mon Sep 17 00:00:00 2001 From: Didier Raboud Date: Sun, 11 Mar 2012 14:59:18 +0100 Subject: [PATCH] Fix both unused and undeclared local variables in pidofproc. This fixes: - one bug introduced by the fix for #327405 in 3.0-6, which stopped using the `line` variable; - one bug introduced in 3.2-20, which started to use the `base` variable without declaring it in local. Closes: #663351 Reported-by: Liu Yubao Signed-off-by: Didier Raboud --- init-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init-functions b/init-functions index c646073..d5b6971 100644 --- a/init-functions +++ b/init-functions @@ -62,7 +62,7 @@ start_daemon () { } pidofproc () { - local pidfile line status specified pid + local pidfile base status specified pid pidfile= specified= -- 2.30.2